package com.jiang.service;

import com.jiang.bean.Song;
import com.jiang.exception.PermissionOrRoleException;
import com.jiang.utils.AjaxResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * Created by dllo on 18/4/13.
 */
public interface SongService {
    AjaxResult getInternetSong(@Param(value = "songName") String SongName);

    void downloadMusic(@RequestParam(value = "songName") String songName,
                       @RequestParam(value = "downloadUrl") String downloadUrl,
                       HttpServletResponse response) throws IOException, PermissionOrRoleException;


    void insertSong(@Param(value = "song") Song song);

    Song selectSong(@Param(value = "KWSongId") String songId);

    List<Song> searchInner(String keyWord);
}
